Aggregates in CHR

نویسندگان

  • Jon Sneyers
  • Peter Van Weert
  • Tom Schrijvers
  • Bart Demoen
چکیده

We propose an extension of the Constraint Handling Rules language with aggregates like sum, count, findall, and min in the heads of rules. We define the semantics of aggregate expressions formally and informally. Our prototype implementation allows nested aggregate expressions over guarded conjunctions of constraints, using either an ondemand or an incremental computation strategy. Case studies demonstrate that by using aggregates, the program size can be reduced significantly, with an acceptable constant run-time overhead.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Aggregates for CHR through Program Transformation

We propose an extension of Constraint Handling Rules (CHR) with aggregates such as sum, count, findall, and min. This new feature significantly improves the conciseness and expressiveness of the language. In this paper, we describe an implementation based on source-to-source transformations to CHR (extended with some low-level compiler directives). We allow user-defined aggregates and nested ag...

متن کامل

Extension and Implementation of CHR

AGGREGATES: •J. Sneyers, P. Van Weert, and T. Schrijvers. Aggregates for Constraint Handling Rules. In Proc. 4th Intl. Workshop on Constraint Handling Rules, Porto, Portugal, pp.91-105, 2007 •P. Van Weert, J. Sneyers, and B. Demoen. Aggregates for CHR through Program Transformation. In LOPSTR '07: 17th Intl. Symp. Logic-Based Program Synthesis and Transformation, Revised Selected Papers, volume...

متن کامل

Aggregates in Constraint Handling Rules

Aggregates. We propose an extension of CHR with aggregate expressions in the heads of rules. Aggregates accumulate information over possibly unbounded parts of the constraint store. We provide a wide range of predefined aggregates, including all aggregates commonly found in related paradigms such as database query languages [1] (i.e. min, max, sum, count and avg) and production rule systems (i....

متن کامل

Presenting the strategy of Iran-Iraq trade interactions based on importance-performance analysis

The development of trade with Islamic countries in the region, especially its neighbors, is important because it reduces the vulnerability of the countrychr(chr(chr(chr('39')39chr('39'))39chr(chr('39')39chr('39')))39chr(chr(chr('39')39chr('39'))39chr(chr('39')39chr('39'))))s economy by developing strategic ties and expanding cooperation with countries in the region and the world. Expanding rela...

متن کامل

Non-Iranian shu'ubiyya movements in early Islamic centuries

The Iranian Shuchr(chr(chr('39')39chr('39'))39chr(chr('39')39chr('39')))ubiyyah was large-scale and diverse movement, but the Shuchr(chr(chr('39')39chr('39'))39chr(chr('39')39chr('39')))ubiyya movements in the Islamic world was not limited to the Iranians. The Umayyad caliphate focused on the Arab element in political, social, and economic affairs, and it was caused dissatisfaction among other ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007